#!/bin/bash

TAG="v0.0.1"
if [ -n "$1" ]; then
  TAG=$1
fi

CATALOG_DOCKER_IMAGE=www.registry.it/gvcloud/gvcloud-catalog:$TAG
CATALOG_DOCKER_IMAGE=${CATALOG_DOCKER_IMAGE//\//\\/}
echo "Update Image : ${CATALOG_DOCKER_IMAGE}"


sed "s/CATALOG_DOCKER_IMAGE/${CATALOG_DOCKER_IMAGE}/g" gvcloud-catalog-deployment.yaml.tpl > k8s/yaml/gvcloud-catalog-deployment.yaml
